package Dao;

import java.util.*;

import MyBean.Charge;
import MyBean.ChuFangDrug;
import MyBean.Message;
import MyBean.Program;
import MyBean.User;
import MyBean.patient;

public interface HospitalDao {
    public boolean insertPatient(patient patient1);

    public List<patient> findPatients(String keyWord);

    public boolean insertProgram(Program program1);

    public patient searchPatientById(String admissionNumber);

    public List<Program> searchProgramById(String admissionNumber);

    public List<Charge> searchChargeById(String admissionNumber);

    public boolean UpdatePatient(patient patient1);

    public boolean deletePatient(String admissionNumber);

    public boolean deleteProgram(String admissionNumber);

    public boolean deleteCharge(String admissionNumber);

    public boolean insertChuFangDrug(ChuFangDrug cfd);

    public List<ChuFangDrug> searchChuFangDrugById(String admissionNumber);

    public boolean deleteChuFangDrug(String admissionNumber);

    public boolean findLogin(User user) throws Exception;

    public boolean findRegister(User user) throws Exception;

	public Message searchMessageByName(String name);
}
